package org.timemanager.view;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

/**
 * listen when its data is cleared
 * @author Dereky
 *
 */
public class ConfigurationChangeReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		Log.e("ConfigurationChangeReceiver",intent.getAction());
		Toast.makeText(context, 
				"ConfigurationChangeReceiver"+intent.getAction(),Toast.LENGTH_LONG);
		Intent intent2=new Intent(context,AlarmAlertActivity.class);
		intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(intent2);
	}

}
